﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TomNet.Core.Data;
using TomNet.IMSC.Model.Infrastructure;

namespace TomNet.IMSC.Model.DbModels.NewHouse
{
    /// <summary>
    /// 户型表
    /// </summary>
    public class HouseType : GeneralBase<int>
    {
        /// <summary>
        /// 老ID
        /// </summary>
        public int OldID { get; set; }
        /// <summary>
        /// 楼盘ID
        /// </summary>
        public int BuildingID { get; set; }
        /// <summary>
        /// 户型名称
        /// </summary>
        [StringLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 面积
        /// </summary>
        [Column(TypeName = "money")]
        public decimal Area { get; set; }
        /// <summary>
        /// 室数
        /// </summary>
        public int Room { get; set; }
        /// <summary>
        /// 厅数
        /// </summary>
        public int Hall { get; set; }
        /// <summary>
        /// 卫数
        /// </summary>
        public int Toilet { get; set; }
        /// <summary>
        /// 库存
        /// </summary>
        public int Inventory { get; set; }
        /// <summary>
        /// 已售数量
        /// </summary>
        public int SalesVolume { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public string Price { get; set; }
        /// <summary>
        /// 优惠
        /// </summary>
        public string Preferential { get; set; }
        /// <summary>
        /// 朝向
        /// </summary>
        [StringLength(50)]
        public string Orientations { get; set; }
        /// <summary>
        /// 装修状况
        /// </summary>
        [StringLength(50)]
        public string DecorationCondition { get; set; }
        /// <summary>
        /// 推荐理由
        /// </summary>
        public string Reason { get; set; }
        /// <summary>
        /// 显示顺序
        /// </summary>
        public int ShowIndex { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }
}
